package com.aoxin.model.dto;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 菜单dto
 * 
 * @author Melody
 * @date 2018年3月30日 下午4:36:16
 */
public class MenuDto {

	/**
	 * 菜单名称
	 */
	private String name;
	/**
	 * 父ID
	 */
	@JsonIgnore
	private Integer parentId;
	/**
	 * 菜单图标
	 */
	private String icon;
	/**
	 * 角色ID
	 */
	private String authority;
	/**
	 * url
	 */
	private String path;
	/**
	 * 子节点
	 */
	@JsonInclude(Include.NON_NULL) 
	private List<MenuDto> children;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public List<MenuDto> getChildren() {
		return children;
	}

	public void setChildren(List<MenuDto> children) {
		this.children = children;
	}

	public String getAuthority() {
		return authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}
}
